﻿using System;
using System.Windows;
using DateTimeEnglishParser;
namespace ParserTest
{
    /// <summary>
    /// Interaction logic for Window1.xaml
    /// </summary>
    public partial class Window1
    {
        public Window1()
        {
            this.InitializeComponent();
        }

        private void CalculateDate(object sender, RoutedEventArgs e)
        {
            this.textBox.Text =
                DateTimeEnglishParser.DateTimeEnglishParser.ParseRelative(DateTime.Now, this.textBox.Text).ToString();
            this.textBox.SelectAll();
        }
    }
}